Skip to content

fix: handle nil Vars in ToCacheMap#2842

Merged
vmaerten merged 2 commits into
go-task:mainfrom
otjdiepluong:maint/20260517073203
Jun 30, 2026
Merged

fix: handle nil Vars in ToCacheMap#2842
vmaerten merged 2 commits into
go-task:mainfrom
otjdiepluong:maint/20260517073203

Conversation

@otjdiepluong

Copy link
Copy Markdown
Contributor

This makes ToCacheMap safe to call on a nil Vars receiver and adds focused coverage for nil, empty, static, live, and dynamic variables.

The behavior for populated Vars is unchanged.

Verification:

  • go test ./taskfile/ast

@vmaerten vmaerten changed the title Handle nil Vars in ToCacheMap fix: handle nil Vars in ToCacheMap Jun 29, 2026
@vmaerten vmaerten merged commit d601746 into go-task:main Jun 30, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants